package com.ciaojian.client.model.bo;

import com.ciaojian.core.enums.business.ShareRecordPlatformEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 用户分享 BO 类
 *
 * @author Atlakyn
 */
@Data
public class ShareBO {
    @ApiModelProperty("分享人Id")
    @NotNull(message = "分享人id不能为空")
    private Integer inviteId;

    @ApiModelProperty("分享人手机号")
    @Pattern(regexp = "1[3|4|5|7|8][0-9]\\d{8}", message = "手机号格式不正确")
    private String invitePhone;

    @ApiModelProperty("分享平台")
    @NotNull(message = "分享平台不能为空")
    private ShareRecordPlatformEnum platform;
}
